package com.ms.p2p.service.impl;


import com.ms.p2p.dao.EmailAuthDao;
import com.ms.p2p.entity.member.Email;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 邮箱认证
 */
@Service
public class MailAuthServiceImpl  {



	@Autowired
	private EmailAuthDao emailAuthDao;

	public int insert(Email email) {

		return  emailAuthDao.insert(email);

	}

	public Email findByUserId(int userId) {
		return emailAuthDao.findByUserId(userId);

	}

	public int update(Email email) {

		return emailAuthDao.update(email);

	}


}
